package main

import "goYmodem"

type myIO struct {
}

func (m myIO) Read(p []byte) (n int, err error) {
	return 0, nil
}

func (m myIO) Write(p []byte) (n int, err error) {
	return 1, nil
}

func main() {
	y := &goYmodem.Ymodem{
		ReadWriter: myIO{},
	}
	fileName := "./hello.txt"
	y.SendFile(fileName)
}
